package com.luhuiguo.gwt.mvp.dispatcher.server.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.luhuiguo.gwt.mvp.dispatcher.server.AbstractDispatcher;
import com.luhuiguo.gwt.mvp.dispatcher.server.ActionHandlerRegistry;

/**
 * 
 * @author LuHuiguo
 * @version $Id: SpringDispatcher.java 8 2009-12-25 03:02:51Z luhuiguo $
 */
@Component
public class SpringDispatcher extends AbstractDispatcher {

    private final ActionHandlerRegistry handlerRegistry;

    @Autowired
    public SpringDispatcher(ActionHandlerRegistry handlerRegistry) {
        this.handlerRegistry = handlerRegistry;
    }

    @Override
    protected ActionHandlerRegistry getHandlerRegistry() {
        return handlerRegistry;
    }

}
